package com.sgb.kjwl.model.entity;

import com.google.gson.annotations.SerializedName;

//出租推荐
public class DeviceEntity {
    @SerializedName("id")
    private String id;
    @SerializedName("title")
    private String title;
    @SerializedName("pictures")
    private String imgUrl;
    @SerializedName("districtNo")
    private String districtNo;

    @SerializedName("districtName")
    private String districtName;

    @SerializedName("pricerange")
    private String priceRange;

    @SerializedName("price")
    private String price;

    @SerializedName("unitName")
    private String unitName;

    @SerializedName("cityName")
    private String cityName;

    @SerializedName("createTime")
    private String createTime;

    @SerializedName("negotiable")
    private String negotiable;

    public String getNegotiable() {
        return negotiable;
    }

    public void setNegotiable(String negotiable) {
        this.negotiable = negotiable;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    @SerializedName("provinceName")
    private String provinceName;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImgUrl() {
        if (imgUrl != null) {
            String img[] = imgUrl.split(",");
            if (img != null || img.length > 0) {
                return img[0];
            }
        }
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDistrictNo() {
        return districtNo;
    }

    public void setDistrictNo(String districtNo) {
        this.districtNo = districtNo;
    }

    public String getPriceRange() {
        return priceRange;
    }

    public void setPriceRange(String priceRange) {
        this.priceRange = priceRange;
    }

    public String getDistrictName() {
        return districtName;
    }

    public void setDistrictName(String districtName) {
        this.districtName = districtName;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
